/*
 * KeyDrv.h
 *
 *  Created on: Apr 13, 2015
 *      Author: mxw
 */

#ifndef KEYDRV_H_
#define KEYDRV_H_

#define KEY_ST_PRESSED     0
#define KEY_ST_RELEASED    1
#define KEY_ST_UNKNOWN     2

//debug
typedef struct {
    unsigned int gkeyDownCnt;
    unsigned int tick[10];
    int cnt;
} keyDownInfo_t;
extern keyDownInfo_t gkeyDownInfo[4];
//debug

typedef struct {
    
} CKeyDrv;

void init_key();
int read_key_status(int which_key);

int on_recv_key_donw_interrupt(int which_key);

#endif /* KEYDRV_H_ */
